package com.tang.services;

import com.tang.bean.Book;
import com.tang.bean.Page;

import java.util.List;

public interface BookService {
  List<Book> getBookList() throws Exception;
  void removeBook(Integer bookId) throws Exception;
  void saveOrUpdateBook(Book book) throws Exception;
  Book getBookById(Integer bookId) throws Exception;
  Page<Book> getPage(Integer pageNo) throws Exception;

  Page<Book> pageByPrice(Integer pageNo, Integer min, Integer max) throws Exception;

  Page<Book> pageByType(Integer pageNo, String typeId) throws Exception;

  Page<Book> pageByKey(Integer pageNo, String key) throws Exception;

}
